﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp5
{
    class Circle:Shape
    {
        private int radius;
        public override void GetArea()
        {
            Console.WriteLine("请输入圆形类的半径:");
            radius = int.Parse(Console.ReadLine());
            Console.WriteLine("圆形类的面积为:{0}",(this.radius * this.radius * 3.14));
        }
        public int Radius
        {
            get { return this.radius; }
            set { this.radius = value; }
        }
    }
}
